package org.example.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @Auther:Liu
 * @Testname:Order
 * @Date:2025/8/5 12:50
 */
@Data
@NoArgsConstructor
@TableName("`order`")
public class Order implements Serializable {
    @TableId
    private  String id;

    private String userId;
    private int totalCount;
    private Double totalAmount;
    private int status;
    private String createTime;
    private String updateTime;
    private int isDeleted;

    @TableField(exist = false)
    List<OrderItem> orderItems;
}
